package cn.lanqiao.springboot.mapper;


import cn.lanqiao.springboot.entity.Menu;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MenuMapper {

    @Select("select p_id as parent_id,menu_id,menu_name,menu_url,menu_logo from system_menu where menu_id in\n" +
            "(select menu_id from system_role_menu where role_id = #{roleId})")
    List<Menu> selectAllMenus(int roleId);
}
